package com.micro.ai.agents.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.micro.ai.agents.entity.AgentFineTunedModelMapping;

import java.util.List;

/**
 * 智能体-微调模型关联服务接口
 * 
 * @author micro-ai
 * @since 0.0.1
 */
public interface AgentFineTunedModelMappingService extends IService<AgentFineTunedModelMapping> {

    /**
     * 创建关联
     */
    AgentFineTunedModelMapping create(AgentFineTunedModelMapping mapping);

    /**
     * 更新关联
     */
    AgentFineTunedModelMapping update(String id, AgentFineTunedModelMapping mapping);

    /**
     * 删除关联
     */
    void delete(String id);

    /**
     * 根据智能体ID查询关联列表
     */
    List<AgentFineTunedModelMapping> listByAgentId(String agentId);

    /**
     * 更新统计信息
     */
    void updateStatistics(String id, boolean success, Integer responseTimeMs);

    /**
     * 分页查询
     */
    Page<AgentFineTunedModelMapping> pageQuery(int pageNum, int pageSize, String tenantId, String agentId);
}

